package com.kgc.scd.service;

import com.kgc.scd.bean.SeckillNotifyResult;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @program: com.kgc.scd.service
 * @author: HarryXzy
 * @create: 2022-06-15 12:21
 * @description:
 **/
@FeignClient(value = "blmall-activemq")
public interface SecKillFeign {

    /**
     * @author: HarryXzy
     * @date: 2022/6/15 11:43
     * @return: void
     * @description: 发送消息中间件通知用户秒杀活动以及修改数据库通知状态
     */
    @PostMapping("/secKillNotifyUser")
    void sendSeckillMsg(@RequestBody() List<SeckillNotifyResult> getNowNeedNotify);


}
